package com.sxit.tdf.server.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;

import java.io.Serializable;

/**
 * 主键
 *
 * @author 橙子高
 * @since 2022-02-08
 */
@TableName("tb_professional")
@Schema(name = "Professional对象", description = "主键")
public class Professional implements Serializable {

  private static final long serialVersionUID = 1L;

  @Schema(description = "主键")
  @TableId(value = "id", type = IdType.AUTO)
  private Integer id;

  @Schema(description = "专业名称")
  private String professionalName;

  @Schema(description = "专业编号")
  private String professionalCode;

  @Schema(description = "专业编号")
  private String professionalDesc;

  @Schema(description = "系部编号")
  private int deptId;

  public int getDeptId() {
    return deptId;
  }

  public void setDeptId(int deptId) {
    this.deptId = deptId;
  }

  public Integer getId() {
    return id;
  }

  public void setId(Integer id) {
    this.id = id;
  }

  public String getProfessionalName() {
    return professionalName;
  }

  public void setProfessionalName(String professionalName) {
    this.professionalName = professionalName;
  }

  public String getProfessionalCode() {
    return professionalCode;
  }

  public void setProfessionalCode(String professionalCode) {
    this.professionalCode = professionalCode;
  }

  public String getProfessionalDesc() {
    return professionalDesc;
  }

  public void setProfessionalDesc(String professionalDesc) {
    this.professionalDesc = professionalDesc;
  }

  @Override
  public String toString() {
    return "Professional{"
        + "id="
        + id
        + ", professionalName='"
        + professionalName
        + '\''
        + ", professionalCode='"
        + professionalCode
        + '\''
        + ", professionalDesc='"
        + professionalDesc
        + '\''
        + '}';
  }
}
